import java.util.Scanner;
import java.util.TreeSet;

public class HJ3 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        //while循环用于处理多组数据
        while(sc.hasNext()){
            int num = sc.nextInt();//输入的数的个数
            TreeSet<Integer> set = new TreeSet<Integer>();
            for(int i=0;i<num;i++){
                int curr = sc.nextInt();
                set.add(curr);
            }
            for(Integer i:set){
                System.out.println(i);
            }
        }
    }
}
